<template>
  <div id="app">
    <router-view></router-view>
    <table v-show="flag">
      <nav class="mui-bar mui-bar-tab">
        <router-link class="mui-tab-item" to="/home">
          <span class="mui-icon mui-icon-home"></span>
          <span class="mui-tab-label">首页</span>
        </router-link>
        <router-link class="mui-tab-item" to="/play">
          <span class="mui-icon mui-icon-extra mui-icon-extra-grech"></span>
          <span class="mui-tab-label">游戏</span>
        </router-link>
        <router-link class="mui-tab-item" to="/vip">
          <span class="mui-icon mui-icon-extra mui-icon-extra-cart"></span>
          <span class="mui-tab-label">送视频VIP</span>
        </router-link>
        <router-link class="mui-tab-item" to="/shftware">
          <span class="mui-icon mui-icon-extra mui-icon-extra-class"></span>
          <span class="mui-tab-label">软件</span>
        </router-link>
        <router-link class="mui-tab-item" to="/control">
          <span class="mui-icon mui-icon-extra mui-icon-extra-find"></span>
          <span class="mui-tab-label">管理</span>
        </router-link>
      </nav>
    </table>
  </div>
</template>

<script>
// import HelloWorld from './components/home'

export default {
  data() {
    return {
      flag:true
    };
  },
  created() {
    this.$router.path === "/home"? true : false;
  },
 
  watch:{
        "$route.path":function(val){
           if(val === '/home'){
                this.flag =true
           }else if(val ==='/play' ){
               this.flag = true;
           }
           else if(val ==='/vip' ){
               this.flag = true;
           }
           else if(val ==='/shftware' ){
               this.flag = true;
           }
           else if(val ==='/control' ){
               this.flag = true;
           }else{
             this.flag= false
           }

        }
    }
  // name: 'App',
  // components: {
  //   HelloWorld
  // }
};
</script>

<style>

body::-webkit-scrollbar {
  display: none;
}
html {
  overflow-x: auto;
  overflow-y: scroll;
  height: 100%;
}
body,
dl,
dt,
dd,
ul,
ol,
li,
pre,
form,
fieldset,
input,
p,
blockquote,
th,
td {
  font-weight: 400;
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
h4,
h4,
h5 {
  margin: 0;
  padding: 0;
}
body {
  background-color: #c9bebe2c;
  color: #666666;
  font-family: Helvetica, Arial, sans-serif;
  text-align: left;
}
select {
  font-size: 12px;
}
table {
  border-collapse: collapse;
}
fieldset,
img {
  border: 0 none;
}
fieldset {
  margin: 0;
  padding: 0;
}
fieldset p {
  margin: 0;
  padding: 0 0 0 8px;
}
legend {
  display: none;
}
address,
caption,
em,
strong,
th,
i {
  font-style: normal;
  font-weight: 400;
}
table caption {
  margin-left: -1px;
}
hr {
  border-bottom: 1px solid #ffffff;
  border-top: 1px solid #e4e4e4;
  border-width: 1px 0;
  clear: both;
  height: 2px;
  overflow: hidden;
}
ol,
ul {
  list-style-image: none;
  list-style-position: outside;
  list-style-type: none;
}
caption,
th {
  text-align: left;
}
</style>
